import requests
from config import url, headers_wechat

class AttendanceActivity:
    def __int__(self):
        self.url = url
        self.headers = headers_wechat

    @classmethod
    def get_studentattendances(cls,url:str,params=None,headers=headers_wechat,paramspath=None):
        '''
        @Summary:获取学生考勤活动列表
        @Description:1.小程序学生端获取学生考勤列表使用
        :param url:
        :param params:
        :return:
        '''
        url = url+ f"/teachingApi/v1/student/{paramspath}/attendances"
        r = requests.get(url=url,headers=headers,params=params)
        return r
